package com.example.pets;

import com.example.animals.Animal;

public class Lion extends Animal {
    public Lion(String name) {
        super(name);
    }

    public void showDetails() {
        System.out.println("Lion's name: " + this.name);
        displayName();  //可以从不同包中调用父类的protected方法
    }

}
